package com.rgp.internalcommon.utils;

import org.apache.commons.lang.StringUtils;
import java.util.regex.Pattern;

/**
 * @author nhp
 * @version 1.0
 * @description TODO
 * @date 2024-04-12 11:34
 */
public class PatternCheckUtils {

    private static final String PHONE_PATTERN = "^1[3-9]\\d{9}$";

    public static Boolean isValidPhone(String phoneNumber){
        if (StringUtils.isEmpty(phoneNumber) || !Pattern.matches(PHONE_PATTERN, phoneNumber)){
            return false;
        }
        return true;
    }

}